i =0
while i<10000000000000000000000000000000000000:
    print(i)
    i+=1
    while i<10000000000000000000000000000000000000:
        print(i)
    i+=1
    while i<10000000000000000000000000000000000000:
        print(i)
        i+=1